package one.stand.request.essay;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import one.stand.request.BaseRequest;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 文章分享记录
 * </p>
 *
 * @author luoyang
 * @since 2020-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="EssayRecord对象", description="文章分享记录")
public class EssayRecordForm extends BaseRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value="文章id",required=true)
    @NotNull(message = "文章不能为空")
    private Long dynamicId;

    @ApiModelProperty(value = "公司id")
    @NotNull(message = "公司不能为空")
    private Long companyId;

    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户不能为空")
    private Long userId;

    @ApiModelProperty(value = "必须 操作类型:1分享次数 2获客数 3浏览次数")
    @NotNull(message = "操作类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "商品数组")
    private List<Integer> goods;

    @ApiModelProperty(value = "文章数组")
    private List<Integer> dynamics;


}
